package edu.chl.jadetalk.db;

import edu.chl.jadetalk.core.Comment;
import edu.chl.jadetalk.core.Image;
import edu.chl.jadetalk.core.Rating;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Daniel
 */
@Local
public interface IImageFacade {
        
    public void create(Image image);

    public void edit(Image image);

    public void remove(Image image);

    public Image find(Object id);

    public void addComment(Image image, Comment comment);
    
    public void addRating(Image image, Rating rating);
    
    public List<Image> findAll();

    public List<Image> findRange(int[] range);

    public int count();
}
